package org.colcon.web.client.ui;

import org.colcon.web.client.Collective_Congress;
import org.colcon.web.model.framework.IContainer;

public class ContainerPanel extends ItemPanel 
{
	public ContainerPanel(Collective_Congress client, IContainer container) 
	{
		super(client, container);
		
		for(String child : container.getChildren())
		{
			add(new LinkPanel(client, child, getItem().getPath() + '/' + child));
		}
	}
	
	public IContainer getContainer()
	{
		return (IContainer) getItem();
	}
}
